package com.atguigu.lease.common.minio;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;

/*@ConfigurationProperties(prefix = "minio")
@EnableConfigurationProperties
@Data
public class MinioProperties {

    private String endpoint;

    private String accessKey;

    private String secretKey;

    private String bucketName;
}*/


//在编译后，这个注解会将我们当前类加入到META-INF中，加入到了配置类清单中
@EnableConfigurationProperties
//注解用来去掉application.yaml中minio配置的前缀信息
@ConfigurationProperties(prefix = "minio")
@Data
public class MinioProperties{
    //这个类用来接收application.yaml中的minio信息
    private String endpoint;
    private String accessKey;
    private String secretKey;
    private String bucketName;
}
